package com.yonyougov.devops.cruxcisupport.attachment;

import com.yonyougov.devops.fwc.core.dao.BaseDao;
import com.yonyougov.devops.fwc.core.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigInteger;
import java.util.List;

/**
 * t_attachment服务实现
 */
@Service
public class AttachmentServiceImpl extends BaseServiceImpl<AttachmentEntity, BigInteger> implements AttachmentService {
    @Autowired
    private AttachmentDao attachmentDao;

    @Override
    public BaseDao<AttachmentEntity, BigInteger> getDao() {
        return attachmentDao;
    }
    //<!--用户自定义代码开始-->

    @Override
    public void addBatch(List<AttachmentEntity> attachmentEntities) {
        attachmentDao.batchInsert(attachmentEntities);
    }


    //<!--用户自定义代码结束-->
}
